package nl.xs4all.dylanschell.deckprinter;

import com.google.inject.Inject;
import com.google.inject.Injector;
import com.google.inject.Provider;
import org.apache.wicket.protocol.http.WebApplication;

public class WicketGuiceAppProvider implements Provider<WebApplication>
{

    private final Injector injector;

    @Inject
    public WicketGuiceAppProvider(Injector injector)
    {
        this.injector = injector;
    }

    public WebApplication get()
    {
        return new DeckPrinterApplication(injector);
    }
}
